package org.xfy.ymcc.mapper;

import org.apache.ibatis.annotations.Param;
import org.xfy.ymcc.domain.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.xfy.ymcc.domain.Teacher;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xfy
 * @since 2023-12-01
 */
public interface CourseMapper extends BaseMapper<Course> {

    void saveTeacherRelationship(@Param("tid") List<Long> teachers, @Param("courseId") Long courseId);

    void deleteTeacherRelationship(Long courseId);

    List<Long> selectTeacherIDs(Long id);
}
